Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

[spec2x] 30ignition/ignition-setup: mount /boot partition ro #135

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Nov 7, 2019

We don't actually need write access to /boot here to pull out any
baked Ignition config. Just mount it read-only.

This also helps in the case where any other service is concurrently also
mounting /boot: trying to mount a device as read-write that's already
mounted read-only elsewhere will fail. I hit this when playing with FIPS
mode, which does this:

https://github.com/dracutdevs/dracut/blob/718aefda1374c7b6c3790b08cae27fd6bde505af/modules.d/01fips/fips.sh#L49

(backport of #134)

We don't actually need write access to `/boot` here to pull out any
baked Ignition config. Just mount it read-only.

This also helps in the case where any other service is concurrently also
mounting `/boot`: trying to mount a device as read-write that's already
mounted read-only elsewhere will fail. I hit this when playing with FIPS
mode, which does this:

https://github.com/dracutdevs/dracut/blob/718aefda1374c7b6c3790b08cae27fd6bde505af/modules.d/01fips/fips.sh#L49

(backport of coreos#134)
@cgwalters cgwalters merged commit 1c7c2f8 into coreos:spec2x Nov 7, 2019
@miabbott miabbott added the spec2x Applies to the ignition spec2x branch label Nov 7, 2019
@miabbott miabbott changed the title 30ignition/ignition-setup: mount /boot partition ro [spec2x] 30ignition/ignition-setup: mount /boot partition ro Nov 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
spec2x Applies to the ignition spec2x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants